home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
perl
/
prlbkxmp.lha
/
ch1
/
shuffle
< prev
next >
Wrap
Text File
|
1991-01-07
|
230b
|
7 lines
#!/usr/bin/perl
srand; # Randomize the rand function.
@lines = <>; # Read in all the lines.
while (@lines) { # While more than 0 elements.
print splice(@lines, rand @lines, 1);
}